﻿namespace _24_Hour_Blogger.ViewModels
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.Mvc;
    using Newtonsoft.Json;
    using _24_Hour_Blogger.ViewModels;
    using _24_Hour_Blogger.Models;
    using _24_Hour_Blogger.Library;

    public class ManagerPageViewModel : PageViewModelBase
    {
        private ManagerViewModel _JsonModel;

        public ManagerPageViewModel()
            : base("Blogger/Manager")
        {
        }

        /// <summary>
        /// Manager Information
        /// </summary>
        [JsonIgnore]
        public ManagerViewModel JsonModel
        {
            get
            {
                if (_JsonModel == null)
                {
                    _JsonModel = new ManagerViewModel() { };
                }
                return _JsonModel;
            }
        }
    }
}